package cn.shrek.service.impl;

import cn.shrek.mapper.PermissionMapper;
import cn.shrek.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PermissionServiceImpl implements PermissionService {
    @Autowired
    private PermissionMapper permissionMapper;

    @Override
    public List<String> queryPermissionsByUserId(Integer user_id) {
        return permissionMapper.queryPermissionsByUserId(user_id);
    }
}
